class Dog():
    """简单的类实例"""
    def __init__(self, name, age):
        self.name = name
        self.age = age

    def sit(self):
        print(self.name.title() +str(self.age)+ '岁' + 'sit down')

    def age(self):
        print(str(self.age) + '岁')


my_dog = Dog('huahua', 2)
print(my_dog.sit())
print(my_dog.age)

# python标准库中的OrdereDict类
from collections import OrderedDict
favorite_lan=OrderedDict()
favorite_lan['web']='html+css'
favorite_lan['cc']='c++'
favorite_lan['py']='python'
print(favorite_lan)
for name,lan  in favorite_lan.items():
    print(name+' '+'语言为：'+lan)

print(5/10)
